export default `
KeyParameter keyParameter = new KeyParameter(key.getBytes());
        SM3Digest digest = new SM3Digest();
        HMac mac = new HMac(digest);
        mac.init(keyParameter);
        mac.update(text.getBytes(), 0, text.getBytes().length);
        byte[] result = new byte[mac.getMacSize()];
        mac.doFinal(result, 0);
`
